package com.ruoyi.erp.domain;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.StringUtils;

import java.util.List;

public class SearchMonthBill {
    private String customerIds;
    private String projectIds;
    private String name;
    private Integer billYear;
    private Integer billMonth;
    private String[] arrayCustomerIds;
    private String[] arrayProjectIds;

    public String getCustomerIds() {
        return customerIds;
    }

    public void setCustomerIds(String customerIds) {
        this.customerIds = customerIds;
        if (!StringUtils.isNull(customerIds) && !customerIds.isEmpty()){
            this.arrayCustomerIds = Convert.toStrArray(",",customerIds);
        }else {
            this.arrayCustomerIds = null;
        }
    }

    public String getProjectIds() {
        return projectIds;
    }

    public void setProjectIds(String projectIds) {
        this.projectIds = projectIds;
        if (!StringUtils.isNull(projectIds) && !projectIds.isEmpty()){
            this.arrayProjectIds = Convert.toStrArray(",",projectIds);
        }else {
            this.arrayProjectIds = null;
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getBillYear() {
        return billYear;
    }

    public void setBillYear(Integer billYear) {
        this.billYear = billYear;
    }

    public Integer getBillMonth() {
        return billMonth;
    }

    public void setBillMonth(Integer billMonth) {
        this.billMonth = billMonth;
    }

    public String[] getArrayCustomerIds() {
        return arrayCustomerIds;
    }

    public void setArrayCustomerIds(String[] arrayCustomerIds) {
        this.arrayCustomerIds = arrayCustomerIds;
    }

    public String[] getArrayProjectIds() {
        return arrayProjectIds;
    }

    public void setArrayProjectIds(String[] arrayProjectIds) {
        this.arrayProjectIds = arrayProjectIds;
    }
}
